package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import java.util.Arrays;

//@ServletComponentScan
@SpringBootApplication
@MapperScan(basePackages ={"com.example.demo"} )
@EnableDiscoveryClient
public class DemoApplication {

	public static void main(String[] args) {
		// java10:局部变量类型自动推断
		var ioc = SpringApplication.run(DemoApplication.class, args);
		// 获取容器中所有组件的名字
		String[] beanDefinitionNames = ioc.getBeanDefinitionNames();
	}
}
